﻿@model IEnumerable<Menu>

@foreach (var item in Model) {
    <tr>
        <td> <input type="checkbox" class="checkboxs" value="@item.Id" /> </td>
        <td>@item.Name</td>
        <td>@item.Code</td>
        <td>@item.Url</td>
        @if (item.Type == 0) {
            <td>菜单项</td>
        }
        @if (item.Type == 1) {
            <td>操作按钮</td>
        }
        <td>@item.Remarks</td>
        <td>
            <button id="btnEdit" class="btn btn-info btn-sm" onclick="edit(@item.Id)">
                <i class='fa fa-edit'></i> 编辑
            </button>
            <button id="btnDelte" class="btn btn-danger btn-sm" onclick="remove(@item.Id)"><i class='fa-trash-o'></i> 删除 </button>
        </td>
    </tr>
}